<?php
/**
 * Created by Zhy
 * User: Zhy
 * Date: 2024/2/26
 * Time: 15:17
 */

namespace app\api\model;

class GoodsPackaging extends Base
{
    protected $hidden = ['packaging_sort', 'packaging_time', 'packaging_update_time'];

    /**
     * 多条查询
     * @param $where
     * @return bool|\PDOStatement|string|\think\Collection
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\ModelNotFoundException
     * @throws \think\exception\DbException
     */
    static function selectData($where = []){
        return self::where($where)->where('packaging_status', 1)->order('packaging_status desc')->select();
    }

}